package com.umpay.provdcs.server.core;

import com.umpay.provdcs.net.Server;
import com.umpay.provdcs.server.WrapMessage;

public class ResponseProcess extends Thread {

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }


    public static Object obj = new Object();

    public void run() {

        try {
            if (data instanceof WrapMessage) {
                Server.processWriteRequest(((WrapMessage) data).getKey());
            } else {

            }

        } catch (Exception e) {
            e.printStackTrace();
        }

    }


    public static void main(String[] args) {
        ThreadData ThreadData = new ThreadData();

        ThreadData.start();

    }
}
